package com.malamute.system.entity;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.malamute.core.entity.BaseEntity;

/**
 * @author Aceguan
 * @description 树 tree-treenode
 * @date 2012-2-23 下午05:21:11
 * @version v1.0
 */
//@Entity
//@Table(name = "T_SYS_TREE")
public class Tree extends BaseEntity {
	private String name;// 树名称
	@Enumerated(value = EnumType.ORDINAL)
	private TreeType type = TreeType.LINKTYPE;
	
	@OneToMany
	private Set<TreeNode> treeNodes;
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public TreeType getType() {
		return type;
	}

	public void setType(TreeType type) {
		this.type = type;
	}

}
